<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>经典菜肴列表</title>
    
  </head>
  
  <body>
  <a href="classicFood_toAddNewClassicFoodPage.action">添加</a>
   <table border="0" cellspacing="20">
   	<tr>
   		<td>序号</td><td>名称</td><td>列表图片</td><td>个体页显示图片</td><td>添加时间</td><td>显示权重</td><td>操作</td>
   	</tr>
   	<c:forEach items="${classicFoodList}" var="classicFood" varStatus="status">
   		<tr><td>${status.count}</td>
   		<td><a href="classicFood_toShowClassicFoodPage.action?classicFoodId=${classicFood.classicFoodId}">${classicFood.classicFoodName}</a></td>
   		<td><img alt="" src="${website}resource/${classicFood.imageMainUrl}" width="200" height="150"></td>
   		<td><img alt="" src="${website}resource/${classicFood.imageMinorUrl}" width="200" height="150"></td>
   		<td><fmt:formatDate value="${classicFood.addTime}" pattern="yyyy年MM月dd日"/> </td>
   		<td>${classicFood.isShowInMain }</td>
   		<td>
   		<a href="classicFood_toUpdateClassicFoodPage.action?classicFoodId=${classicFood.classicFoodId}">修改</a>|
   		<a href="classicFood_deleteOneClassicFood.action?classicFoodId=${classicFood.classicFoodId}" onclick="return confirm('确认删除该经典菜肴删除?');">删除</a>
   		</td>
   		</tr>
   		
   	</c:forEach>
   </table>
  </body>
</html>
